﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>   
    <script src="@Url.Content("~/Content/js/jquery.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/bootstrap.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/jquery-ui.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/unicorn.js")" type="text/javascript"> ></script>
    <script src="@Url.Content("~/Content/js/unicorn.tables.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/css/unicorn.login.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/bootstrap.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/unicorn.main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/tiny_mce/tiny_mce.js")"></script>

</head>

<body>
@if (ViewBag.ProjectName != null)
{
    <div class="project-name">@ViewBag.ProjectName</div>}
	<div id="user-nav" class="navbar navbar-inverse">
@if (User.Identity.IsAuthenticated)
{
        <ul class="nav btn-group">
        
        @if (((ScrumProject.Models.CustomPrincipal) User).SelectedProjectId > -1)
            {
                <li class="btn btn-inverse">@Html.ActionLink("Project Wall", "Index", "ProjectWall")</li>
                <li class="btn btn-inverse">@Html.ActionLink("Product Backlog", "Backlog", "MyProjects")</li>
                <li class="btn btn-inverse">@Html.ActionLink("Sprint Backlog", "SprintBacklog", "MyProjects")</li>
                <li class="btn btn-inverse">@Html.ActionLink("My Tasks", "MyTasks", "Task")</li>
                @*<li class="btn btn-inverse">@Html.ActionLink("Progress Report", "ProgressReport", "MyProjects")</li>*@
            }
            @*<li class="btn btn-inverse">@Html.ActionLink("Home", "Index", "Home")</li>*@
@if (User.IsInRole("admin"))
{
            <li class="btn btn-inverse">@Html.ActionLink("User", "Index", "User")</li>
}
            <li class="btn btn-inverse">@Html.ActionLink("Project", "Index", "Project")</li>
            <li class="btn btn-inverse">@Html.ActionLink("My Projects", "Index", "Myprojects")</li>
            <li class="btn btn-inverse dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon"></i> <span class="text">@User.Identity.Name</span> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li>@Html.ActionLink("My Profile", "MyProfile", "Login")</li>
                        @*<li><a class="" title="" href="/Login/MyProfile">My Profile</a></li>*@
                    <li>@Html.ActionLink("Change Password", "Password", "Login")</li>
                        @*<li><a class="" title="" href="/Login/Password">Change Password</a></li>*@
                    <li>@Html.ActionLink("Logout", "LogOff", "Login")</li>
                        @*<li><a class="" title="" href="/Login/LogOff">Logout</a></li>*@
                </ul>
            </li>
        </ul>
}
@if(!User.Identity.IsAuthenticated){
        <ul class="nav btn-group">
            <li class="btn btn-inverse">@Html.ActionLink("Login", "LogOn", "Login")</li>
            @*<li class="btn btn-inverse"><a title="" href="/Login/LogOn"><i class="icon icon-share-alt"></i> <span class="text">Login</span></a></li>*@
        </ul>
}

    </div>
    <div class="page"> 
        <section id="main">
        <div id="loginbox">            
            @RenderBody()
        </div>
        </section>
    </div>

</body>
</html>